package com.hiwan.unions.activity.base.mvpbase;


/**
 * Created by haorui on 2016/8/2.
 * 基于Rx的Presenter封装,控制订阅的生命周期
 */
public class Presenter<T extends BaseView> implements BasePresenter<T> {

    protected T mView;


    @Override
    public void attachView(T view) {
        this.mView = view;
    }

    @Override
    public void detachView() {
        this.mView = null;
    }
}
